﻿using System;
using MaLu.Common;
using MaLu.Data;
using System.Web.UI.WebControls;

namespace MaluJg.web.Stats
{
    public partial class FarmingIndex : BasicPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                tbYear.Text = Year.ToString();
                ddlVillage.DataSource = SqlHelper.Instance.ExecuteDataTable(Provider, "select * from DicVillages");
                ddlVillage.DataTextField = "name";
                ddlVillage.DataValueField = "id";
                ddlVillage.DataBind();

                ddlVillage.Items.Insert(0, new ListItem("全部", "0"));

            }
        }
    }
}
